package com.arvato.admin01.Util;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

/**
 * @Description: java类作用描述
 * @Author: ZHAN686
 * @CreateDate: 2018/8/31$ 14:29$
 * @Version: 1.0
 */
public class UuidUtil {

    public static String getUuid(){
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static void main(String[] args) {
            System.out.println(UuidUtil.getUuid());
    }

    public static <T> List<T> removeNull(List<? extends T> oldList) {
        // 临时集合
        List<T> listTemp = new ArrayList();
        for (int i = 0;i < oldList.size(); i++) {
            // 保存不为空的元素
            if (oldList.get(i) != null) {
                listTemp.add(oldList.get(i));
            }
        }
        return listTemp;
    }





}
